package org.example.videotran.exception;

//这个枚举类中定义的都是跟业务有关的异常
public enum AppExceptionCodeMsg {

    OVERDUE_TOKEN(10000,"token过期"),
    USERNAME_NOT_EXISTS(10001,"没有该用户"),
    INCORRECT_FILE_TYPE(10002,"文件类型错误"),
    INCORRECT_PHONE_PASSWORD(10003,"电话或密码错误"),
    INCORRECT_EMAIL_PASSWORD(10004,"邮箱或密码错误"),
    NON_EXISTENT_FILE(10005,"文件不存在"),
    NON_EXISTENT_DIRECTORY(10006,"清理目录不存在"),
    NULL_TOKEN(10007,"token为空")
    ;


    private int code ;
    private String msg ;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


    AppExceptionCodeMsg(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

}